#include "camera_capture.h"

int main(int argc, char *argv[])
{
    ros::init(argc, argv, "cv_image");

    cv_camera_capture::CameraCapture cam_node;

	std::thread front_camera_thread(&cv_camera_capture::CameraCapture::front_camera, &cam_node);
	front_camera_thread.detach();
    usleep(300*1000);

#if 1
	std::thread back_camera_thread(&cv_camera_capture::CameraCapture::back_camera, &cam_node);
	back_camera_thread.detach();
    usleep(50*1000);
#endif

    ros::spin();
    return 0;
}

// rostopic pub -1 /cv_camera/front_camera_state std_msgs/Bool 1
// rostopic pub -1 /cv_camera/back_camera_state std_msgs/Bool 1
